<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	//服务器名
	String SERVER_NAME = request.getServerName();
	//获得服务器的端口号
	Integer SERVER_Port = request.getServerPort();
	//获得客户端的IP地址
	String Remote_Addr = request.getRemoteAddr();

	//获取session中的值
	Integer userID = (Integer) session.getAttribute("userID");
	//表示未登陆
	if (userID == null || userID == 0) {
		response.sendRedirect("adminLogin.jsp");
	}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>紫云科技网络有限公司</title>
<link rel="stylesheet" type="text/css"
	href="<%=path%>/jsp/admin/css/common.css" />
<link rel="stylesheet" type="text/css"
	href="<%=path%>/jsp/admin/css/main.css" />

</head>
<body style="background:url(<%=path%>/image/856.jpg);background-repeat: no-repeat;background-position: center center;background-size: cover;">

   <!-- 插入头部文件 -->
	<jsp:include page="top.jsp" />
	<div class="container clearfix">
	
	    <!-- 插入左边菜单栏文件 -->
		<jsp:include page="left.jsp" />
		
		<div class="main-wrap">
			<div class="crumb-wrap">
				<div class="crumb-list">
					<i class="icon-font">&#xe06b;</i><span>欢迎使用程序，新闻维护的首选工具。</span>
				</div>
			</div>
			<div class="result-wrap">
				<div class="result-title">
					<h1>快捷操作</h1>
				</div>
				<div class="result-content">
					<div class="short-wrap">
						<a href="<%=path%>/jsp/admin/addnews3.jsp?type=5"><i
							class="icon-font">&#xe001;</i>添加公司新闻</a> <a
							href="<%=path%>/jsp/admin/addnews3.jsp?type=7"><i
							class="icon-font">&#xe005;</i>添加行业新闻</a> <a
							href="<%=path%>/jsp/admin/addnews4.jsp?type=9"><i
							class="icon-font">&#xe048;</i>添加招聘信息</a> <a
							href="<%=path%>/jsp/admin/addnews2.jsp?type=3"><i
							class="icon-font">&#xe041;</i>添加合作伙伴</a> <a
							href="<%=path%>/admin/AdminNewsServlet?flag=_seequeryNews&type=10"><i
							class="icon-font">&#xe01e;</i>查看留言</a>
					</div>
				</div>
			</div>
			<div class="result-wrap">
				<div class="result-title">
					<h1>系统基本信息</h1>
				</div>
				<div class="result-content">
					<ul class="sys-info-list">
						<li><label class="res-lab">服务器名</label><span class="res-info"><%=SERVER_NAME%></span>
						</li>
						<li><label class="res-lab">服务器的端口号</label><span
							class="res-info"><%=SERVER_Port%></span></li>
						<li><label class="res-lab">客户端的IP地址</label><span
							class="res-info"><%=Remote_Addr%></span></li>
						<li><label class="res-lab">上传附件限制</label><span
							class="res-info">2M</span></li>

					</ul>
				</div>
			</div>
		</div>
	</div>
</body>
</html>